// /index/yddLogin
// 登录注册
import Vue from 'vue'
import tools from './../utils/tools'
import {AjaxPlugin} from 'vux'



Vue.use(AjaxPlugin)

const SERVER = tools.baseUrl();
export default {
    SERVER,
    login: (data) =>( AjaxPlugin.$http.post(`${SERVER}/user/login`+ '?' +data))  , // 用户登录
    getpicvericode: (data) =>( AjaxPlugin.$http.post(`${SERVER}/user/getpicvericode`+ '?' + data))  , // 获取登录验证码
    logout: (data) =>( AjaxPlugin.$http.post(`${SERVER}/user/logout`+ '?' + data))  , // 退出登录
}
